
##==========================================================

ADD_LIBRARY(msgdelay SHARED
    msgdelay.cpp
)

SET_PROPERTY(TARGET msgdelay PROPERTY FOLDER "modules-test")

## 链接Yate库
TARGET_LINK_LIBRARIES( msgdelay yateengine )

## 设置插件的后缀为.yate 
SET_TARGET_PROPERTIES(msgdelay PROPERTIES SUFFIX ".yate")

SET_TARGET_PROPERTIES(msgdelay PROPERTIES PREFIX "")
 
# 安装
# Note: may not work on windows
INSTALL (TARGETS msgdelay LIBRARY DESTINATION modules )

##==========================================================


ADD_LIBRARY(testcrypto SHARED
    crypto.cpp
)

SET_PROPERTY(TARGET testcrypto PROPERTY FOLDER "modules-test")

## 链接Yate库
TARGET_LINK_LIBRARIES( testcrypto yateengine )

## 设置插件的后缀为.yate 
SET_TARGET_PROPERTIES(testcrypto PROPERTIES SUFFIX ".yate")

SET_TARGET_PROPERTIES(testcrypto PROPERTIES PREFIX "")
 
# 安装
# Note: may not work on windows
INSTALL (TARGETS testcrypto LIBRARY DESTINATION modules )

##==========================================================

ADD_LIBRARY(nettest SHARED
    nettest.cpp
)

SET_PROPERTY(TARGET nettest PROPERTY FOLDER "modules-test")

## 链接Yate库
TARGET_LINK_LIBRARIES( nettest yateengine )

## 设置插件的后缀为.yate 
SET_TARGET_PROPERTIES(nettest PROPERTIES SUFFIX ".yate")

SET_TARGET_PROPERTIES(nettest PROPERTIES PREFIX "")
 
# 安装
# Note: may not work on windows
INSTALL (TARGETS nettest LIBRARY DESTINATION modules )

##==========================================================

ADD_LIBRARY(mydemo SHARED
    mydemo.cpp
)

SET_PROPERTY(TARGET mydemo PROPERTY FOLDER "modules-test")

## 链接Yate库
TARGET_LINK_LIBRARIES( mydemo yateengine )

## 设置插件的后缀为.yate 
SET_TARGET_PROPERTIES(mydemo PROPERTIES SUFFIX ".yate")

SET_TARGET_PROPERTIES(mydemo PROPERTIES PREFIX "")
 
# 安装
# Note: may not work on windows
INSTALL (TARGETS mydemo LIBRARY DESTINATION modules )

##==========================================================



